"""
bisheng api request ,助手 api post请求
/api/v2/assistant/chat/completions
"""

import requests
import json

url = r"http://ooo.dgpms.cn:3001/api/v2/assistant/chat/completions"

payload = json.dumps(
    {
        "model": "17953c71e62847bab4700f135bfc924e",
        "messages": [{"role": "user", "content": "你好，石龙旧改的可行性报告"}],
        "temperature": 0,
        "stream": True,
    }
)
headers = {
    "User-Agent": "Apifox/1.0.0 (https://apifox.com)",
    "Content-Type": "application/json",
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
